<?php if (!defined('THINK_PATH')) exit();?><html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
   <!--
    <link href="../static/bootstrap/css/bootstrap-responsive.css" rel="stylesheet" type="text/css"/>
    <link href="../static/bootstrap/css/docs.css" rel="stylesheet" type="text/css"/>
    -->
   <link href="/static/bootstrap/css/bootstrap.css" rel="stylesheet" type="text/css"/>
   <link href="/static/viewback/css/mycss.css" rel="stylesheet" type="text/css"/>
   
   <title>会员信息</title>
</head>
<body>
<div class="header"></div>
<!--<div id="banner"><h2 style="color: blue">论坛后台管理系统</h2>

</div>
    <div class="row-fluid">
       <div style="margin-left:50px;margin-top: 10px;float: left">欢迎管理员<a href="/Admin/user/userInfo?id=<?php echo $_SESSION['userInfo']['id'] ?>"><?php if($_SESSION['userInfo']['role']=='管理员'){echo $_SESSION['userInfo']['username'];}else{header("location:/User/user/login");} ?></a>登录</div>
       <div style="float:right;margin-right: 20px;" class="navbar navbar-inner"> 
            <ul class="nav nav-pills" id="top-nav"> 
            <li  id="index"><a href="/User/forum/forum.html" target="_blank">论坛首页</a></li>
            <li class="divider-vertical"></li>
            <li  id="posts"><a href="/Admin/posts/postsList.html" target="_self">帖子管理</a></li>
            <li class="divider-vertical"></li>
            <li  id="user"><a href="/Admin/user/userList.html" target="_self">会员管理</a></li>
            <li class="divider-vertical"></li>
            <li  id="forum"><a href="/Admin/forum/forumList.html" target="_self">版块管理</a></li>
            <li class="divider-vertical"></li>
            <li  id="logout"><a href="/User/user/logout" target="_self"><i class="icon-off"></i>安全退出</a></li>
           </ul>
       </div>
    </div>

<!--<script type="text/javascript">
    $(document).ready(function(){
        $('li').mouseover(function(){
            $(this).addClass('active');
        });
        $('li').mouseout(function(){
            $(this).removeClass('active');
        });
    });
</script>-->
<script type="text/javascript" src="/static/viewback/js/jquery-1.8.3.js"></script>
<script type="text/javascript">
    var oplist = new Array('index', 'posts', 'user', 'forum', 'logout');
    $(document).ready(function() {
            $('#top-nav').find('a').mouseover(function() {
                    var id = $(this).attr('id');
                    $.each(oplist, function(i, n) {
                            $('#'+n).attr('class', 'inactive');
                    });
                    $(this).parents("li").attr('class', 'active');
            });
    });
</script>
<div class="container-fluid" style="font-weight: 700;">
    <div class="navbar navbar-inverse navbar-fixed-top" style="min-width: 1340px;">
        <div class="navbar-inner">
            <a class="brand" href="#">论坛后台管理系统</a>
            <div class="nav-collapse collapse">
                <p class="navbar-text pull-right" style="margin-right: 100px;">
                   欢迎管理员<a href="/Admin/user/userInfo?id=<?php echo $_SESSION['userInfo']['id'] ?>"><?php if($_SESSION['userInfo']['role']=='管理员'){echo $_SESSION['userInfo']['username'];}else{header("location:/User/user/login");} ?></a>登录
                </p>
               <ul class="nav nav-pills" id="top-nav"> 
                <li  id="index"><a href="/User/forum/forum.html" target="_blank">论坛首页</a></li>
                <li class="divider-vertical"></li>
                <li  id="user"><a href="/Admin/user/userList.html" target="_self">会员管理</a></li>
                <li class="divider-vertical"></li>
                <li  id="posts"><a href="/Admin/posts/postsList.html" target="_self">帖子管理</a></li>
                <li class="divider-vertical"></li>
                <li  id="forum"><a href="/Admin/forum/forumList.html" target="_self">版块管理</a></li>
                <li class="divider-vertical"></li>
                <li  id="logout"><a href="/User/user/logout" target="_self"><i class="icon-off"></i>安全退出</a></li>
               </ul>
            </div>
        </div>
    </div>
</div>
<br/>
<br/>


<ul class="breadcrumb">
    <li>
      <a href="/Admin/user/userList"><i class="icon-home"></i></a> <span class="divider">/</span>
    </li>
    <li>
      <a href="/Admin/user/userList"><i class="icon-user"></i></a> <span class="divider">/</span>
    </li>
    <li>
        <a href="/Admin/user/userList"><i class="icon-list-alt"></i></a><span class="divider">/</span>
    </li>
    <li class="active"><?php echo ($userInfo["username"]); ?>的个人信息</li>
 </ul>
    <div class="container-fluid">
        <div class="row-fluid">
            <div class="span2">
                <div class="well slidebar-nav" style="width:170px;height: auto">
    <ul class="nav nav-list nav-stacked nav-pills">
        <li class="nav-header">会员管理</li>
        <li><a href="/Admin/user/userList">会员列表</a></li>
        <li><a href="/Admin/user/userOnline">在线会员</a></li>
        <li><a href="/Admin/user/userDrop">账号删除</a></li>
        <li class="nav-header">帖子管理</li>
        <li><a href="/Admin/posts/postsList">主题列表</a></li>
        <li><a href="/Admin/posts/postsNew">今日新帖</a></li>
        <li><a href="/Admin/posts/postsGood">精华帖子</a></li>
        <li class="nav-header">版块管理</li>
        <li><a href="/Admin/forum/forumList">版块列表</a></li>
        <li><a href="/Admin/forum/forumAdd">板块增加</a></li>
        <li><a href="/Admin/forum/forumDelete">版块删除</a></li>
        <li class="nav-header">其他</li>
        <li><a href="/Admin/user/userResetPwd">密码重置</a></li>
        <li><a href="/Admin/forum/dataBack">数据备份</a></li>
        <li><a href="/User/user/logout">安全退出</a></li>
    </ul>
</div>
<script type="text/javascript">
    $(document).ready(function(){
        $('li').mouseover(function(){
            $(this).addClass('active');
        });
        $('li').mouseout(function(){
            $(this).removeClass('active');
        });
    });
</script>


   
      
            </div>
            <div class="span10">
                    <div class="">
                        <fieldset>
                            <legend><h3>个人信息</h3></legend>
                            <form action="/Admin/user/userEdit" method="post">
                                <!--头像列表对话框-->
                                <div class="modal" id="myModal" style="display: none;width: 500px;">
                                    <div class="modal-header">
                                      <a class="close" data-dismiss="modal">×</a>
                                      <h3>头像列表</h3>
                                    </div>
                                    <div class="modal-body">
                                        <input name="head_img" type="radio" value="/static/view/image/head-img/001.jpg"/><img src="/static/view/image/head-img/001.jpg" width="60px;"/>
                                        <input name="head_img" type="radio" value="/static/view/image/head-img/002.jpg"/><img src="/static/view/image/head-img/002.jpg" width="60px;"/>
                                        <input name="head_img" type="radio" value="/static/view/image/head-img/003.jpg"/><img src="/static/view/image/head-img/003.jpg" width="60px;"/>
                                        <input name="head_img" type="radio" value="/static/view/image/head-img/004.jpg"/><img src="/static/view/image/head-img/004.jpg" width="60px;"/>
                                        <input name="head_img" type="radio" value="/static/view/image/head-img/005.jpg"/><img src="/static/view/image/head-img/005.jpg" width="60px;"/>
                                        <input name="head_img" type="radio" value="/static/view/image/head-img/006.jpg"/><img src="/static/view/image/head-img/006.jpg" width="60px;"/>
                                        <input name="head_img" type="radio" value="/static/view/image/head-img/007.jpg"/><img src="/static/view/image/head-img/007.jpg" width="60px;"/>
                                        <input name="head_img" type="radio" value="/static/view/image/head-img/008.jpg"/><img src="/static/view/image/head-img/008.jpg" width="60px;"/>
                                        <input name="head_img" type="radio" value="/static/view/image/head-img/009.jpg"/><img src="/static/view/image/head-img/009.jpg" width="60px;"/>
                                        <input name="head_img" type="radio" value="/static/view/image/head-img/010.jpg"/><img src="/static/view/image/head-img/010.jpg" width="60px;"/>
                                        <input name="head_img" type="radio" value="/static/view/image/head-img/011.jpg"/><img src="/static/view/image/head-img/011.jpg" width="60px;"/>
                                        <input name="head_img" type="radio" value="/static/view/image/head-img/012.jpg"/><img src="/static/view/image/head-img/012.jpg" width="60px;"/>
                                        <input name="head_img" type="radio" value="/static/view/image/head-img/013.jpg"/><img src="/static/view/image/head-img/013.jpg" width="60px;"/>
                                        <input name="head_img" type="radio" value="/static/view/image/head-img/014.jpg"/><img src="/static/view/image/head-img/014.jpg" width="60px;"/>
                                        <input name="head_img" type="radio" value="/static/view/image/head-img/015.jpg"/><img src="/static/view/image/head-img/015.jpg" width="60px;"/>
                                        <input name="head_img" type="radio" value="/static/view/image/head-img/016.jpg"/><img src="/static/view/image/head-img/016.jpg" width="60px;"/>
                                        <input name="head_img" type="radio" value="/static/view/image/head-img/017.jpg"/><img src="/static/view/image/head-img/017.jpg" width="60px;"/>
                                        <input name="head_img" type="radio" value="/static/view/image/head-img/018.gif"/><img src="/static/view/image/head-img/018.gif" width="60px;"/>
                                    </div>
                                    <div class="modal-footer">
                                      <a href="#" class="btn btn-primary" data-dismiss="modal">确定</a>
                                    </div>
                                  </div>
                                <!--头像列表对话框-->
                                <table class="table table-bordered table-hover">
                                    <tr><th>头像</th><td><a data-toggle="modal" href="#myModal" data-keyboard="true" data-backdrop="false"><img src="<?php echo ($userInfo["head_img"]); ?>" width="100px;"/></a></td></tr>
                                    <tr><th>用户ID</th><td><input readonly name="id" type="number" value="<?php echo ($userInfo["id"]); ?>" id="uid" class="span4"></td></tr>
                                    <tr><th>用户名</th><td><?php echo ($userInfo["username"]); ?></td></tr>
                                    <tr><th>群组</th><td><?php echo ($userInfo["role"]); ?></td></tr>
                                    <tr><th>积分</th><td><?php echo ($userInfo["credits"]); ?></td></tr>
                                    <tr><th>姓名</th><td><input readonly name="name" value="<?php echo ($userInfo["name"]); ?>" class="span4"/></td></tr>
                                    <tr><th>性别</th>
                                        <td><div id="gender"><?php echo ($userInfo["gender"]); ?></div>
                                            <div id="gender-radio" style="display: none;">
                                                <?php if($userInfo["gender"] == '男'): ?><input readonly name="gender" value='男' type="radio" checked="checked"/>男
                                                    <input readonly name="gender" value='女' type="radio"/>女
                                                <?php else: ?>
                                                    <input readonly name="gender" value='男' type="radio"/>男
                                                    <input readonly name="gender" value='女' type="radio" checked="checked"/>女<?php endif; ?>
                                            </div> 
                                        </td>
                                    </tr>
                                    <tr><th>出生年月</th><td><input readonly name="birth_day" type="date" value="<?php echo ($userInfo["birth_day"]); ?>" class="span4" id="birthday"/></td></tr>
                                    <tr><th>注册时间</th><td><?php echo ($userInfo["register_time"]); ?></td></tr> 
                                    <tr><th>最后登录时间</th><td><?php echo ($userInfo["login_time"]); ?></td></tr>
                                    <tr><th>邮箱</th><td><input readonly name="email" type="email" value="<?php echo ($userInfo["email"]); ?>" class="span4"/></td></tr>
                                    <tr><th>电话</th><td><input readonly name="phone" type="number" value="<?php echo ($userInfo["phone"]); ?>" class="span4"/></td></tr>
                                    <tr><th>职业</th><td><input readonly name="profession"  value="<?php echo ($userInfo["profession"]); ?>" class="span4"/></td></tr>
                                    <tr><th>地址</th><td><input readonly name="address"  value="<?php echo ($userInfo["address"]); ?>" class="span4"/></td></tr>
                                    <?php if($userInfo["id"] == $_SESSION['userInfo']['id']): ?><tr>
                                            <th>操作</th>
                                            <td>
                                                <button class="btn btn-primary" type="button" id="edit">编辑</button>
                                                <button class="btn btn-primary" type="submit" id="submit" style="display: none">提交修改</button>
                                                <?php if($_GET['flag']=='error'){echo "<font color='red'>未做任何修改</font>";} ?>
                                            </td>
                                        </tr>
                                    <?php else: ?>
                                    &nbsp;<?php endif; ?>
                                </table>
                            </form>
                        </fieldset>
                    </div>
            </div>
        </div>
</div>

<div style="margin:5px 20px;">
	<div style="border-bottom: 1px solid silver"></div>
	<div style="padding:15px 0px;line-height:1.0;">
		<p>Copyright &copy;2012-2013 shaobo,test</p>
		<p>Welcome to our Bulletin Board System.It is our <strong>beta</strong> version,contact <a href="mailto:shaaoboo@sina.com"><font color='blue'>shaaoboo@sina.com</font></a> to give us your valuable suggestion.</p>
	</div>
</div>

<script type="text/javascript" src="/static/bootstrap/js/bootstrap.js"></script>
<script type="text/javascript" src="/static/viewback/js/bootstrap-modal.js"></script>
<script type="text/javascript" src="/static/viewback/js/jquery-1.8.3.js"></script>
<script src="/static/bootstrap/js/jquery.ui.core.js"></script>
<script src="/static/bootstrap/js/jquery.ui.datepicker.js"></script>

<script type="text/javascript">
    $(document).ready(function(){
        //$( "#birthday" ).datepicker();
        $('#edit').click(function(){
            $(this).css('display','none');
            $('input').attr('readonly',false);
            $('input#uid').attr('readonly',true);
            $('#gender').css('display','none');
            $('#gender-radio').css('display','block');
            $('#submit').css('display','block');
        });
    });
</script>
</body>
</html>